package gamesys.games.particlesystem.core {
	import gamesys.games.particlesystem.AbstractTest;

	import particlesystem.graphics.BitmapAnimationFactory;

	import flash.display.Bitmap;

	public class BitmapAnimationFactoryTest extends AbstractTest {
		private var bitmapAnimationFactory : BitmapAnimationFactory;

		override protected function init() : void {
			bitmapAnimationFactory = new BitmapAnimationFactory();
			
			var animation1 : Array = bitmapAnimationFactory.getBitmapAnimation("Coin");
			var totalFrames1 : int = animation1.length;
			
			for(var i : int = 0;i < totalFrames1;i++) {
				var bitmap1 : Bitmap = new Bitmap(animation1[i]);
				bitmap1.y = 100;
				bitmap1.x = 100 + i * 30;
				addChild(bitmap1);
				
				  
			}
		}
	}
}
